package com.ruibang.glass.produce.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import com.teaming.cloud.framework2.common.tools.LocalDateStringConverter;
import com.teaming.cloud.framework2.common.tools.LocalDateTimeStringConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDate;

import lombok.Data;

/**
 * <p>
 * 生产-理化-X荧光填写
 * </p>
 *
 * @author songJinKang
 * @since 2024-03-12
 */
@Data
@ApiModel(value = "生产-理化-X荧光填写")
@TableName("g_produce_glass_fluorescence")
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
public class GlassFluorescence extends BaseEntity {
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ExcelIgnore
    private String id;
    @ApiModelProperty(value = "日期")
    @ColumnWidth(16)
    @ExcelProperty(value = {"日期"}, index = 0, converter = LocalDateStringConverter.class)
    private LocalDate date;
    @ApiModelProperty(value = "时间")
    @ColumnWidth(12)
    @ExcelProperty(value = {"时间"}, index = 1, converter = LocalDateTimeStringConverter.class)
    private String time;
    @ApiModelProperty(value = "检测人")
    @ColumnWidth(10)
    @ExcelProperty(value = {"检测人"}, index = 2)
    private String checkBy;
    @ApiModelProperty(value = "检测人用户ID")
    @ExcelIgnore
    private String checkById;
    @ApiModelProperty(value = "玻璃区域：0：远程 1；近端 2：中端")
    @ColumnWidth(10)
    @ExcelProperty(value = {"玻璃区域"}, index = 3)
    private String area;
    @ApiModelProperty(value = "SiO2(%)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"SiO2(%)"}, index = 4)
    private Double f1;
    @ApiModelProperty(value = "Al2O3(%)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"Al2O3(%)"}, index = 5)
    private Double f2;
    @ApiModelProperty(value = "SrO(%)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"SrO(%)"}, index = 6)
    private Double f3;
    @ApiModelProperty(value = "CaO(%)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"CaO(%)"}, index = 7)
    private Double f4;
    @ApiModelProperty(value = "B2O3(%)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"B2O3(%)"}, index = 8)
    private Double f5;
    @ApiModelProperty(value = "SnO2(%)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"SnO2(%)"}, index = 9)
    private Double f6;
    @ApiModelProperty(value = "MgO(%)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"MgO(%)"}, index = 10)
    private Double f7;
    @ApiModelProperty(value = "Fe2O3(%)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"Fe2O3(%)"}, index = 11)
    private Double f8;
    @ApiModelProperty(value = "K2O(%)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"K2O(%)"}, index = 12)
    private Double f9;
    @ApiModelProperty(value = "Na2O(%)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"Na2O(%)"}, index = 13)
    private Double f10;
    @ApiModelProperty(value = "ZrO2(%)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"ZrO2(%)"}, index = 14)
    private Double f11;
    @ApiModelProperty(value = "备注")
    @ColumnWidth(10)
    @ExcelProperty(value = {"备注"}, index = 1)
    private String remark;
    @ApiModelProperty(value = "是否删除：1：是 0：否")
    @TableLogic
    @ExcelIgnore
    private String isDelete;
    @ApiModelProperty(value = "创建人")
    @ExcelIgnore
    private String createUserName;
    @ApiModelProperty(value = "创建人用户ID")
    @ExcelIgnore
    private String createUserId;
}
